|
In statistics, Spearman's rank correlation coefficient or Spearman's rho, named after Charles Spearman and often denoted by the Greek letter (rho) or as , is a nonparametric measure of statistical dependence between two variables. It assesses how well the relationship between two variables can be described using a monotonic function. If there are no repeated data values, a perfect Spearman correlation of +1 or −1 occurs when each of the variables is a perfect monotone function of the other. Spearman's coefficient, like any correlation calculation, is appropriate for both continuous and discrete variables, including ordinal variables.〔Scale types〕 Spearman's and Kendall's can be formulated as special cases of a more general correlation coefficient. ==Definition and calculation== The Spearman correlation coefficient is defined as the Pearson correlation coefficient between the ranked variables. For a sample of size ''n'', the ''n'' raw scores are converted to ranks , and ''ρ'' is computed from: : where , is the difference between ranks. See the example below. Identical values (rank ties or value duplicates) are assigned a rank equal to the average of their positions in the ascending order of the values. In the table below, notice how the rank of values that are the same is the mean of what their ranks would otherwise be: =2.5\ |- |1.2||3|| |- |2.3||4||4 |- |18||5||5 |} In applications where duplicate values are known to be absent, a simpler procedure can be used to calculate ρ.〔 This method should not be used in cases where the data set is truncated; that is, when the Spearman correlation coefficient is desired for the top X records (whether by pre-change rank or post-change rank, or both), the user should use the Pearson correlation coefficient formula given above. The standard error of the coefficient (''σ'') was determined by Pearson in 1907 and Gosset in 1920. It is : 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Spearman's rank correlation coefficient」の詳細全文を読む スポンサード リンク
|